<?php
// +----------------------------------------------------------------------
// | OneThink [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013 http://www.onethink.cn All rights reserved.
// +----------------------------------------------------------------------
// | Author: yangweijie <yangweijiester@gmail.com> <code-tech.diandian.com>
// +----------------------------------------------------------------------

namespace Admin\Model;
use Think\Model;

/**
 * 插件模型
 * @author yangweijie <yangweijiester@gmail.com>
 */

class GoodsitemModel extends Model {

	protected $_validate = array(
        array('good_name', 'require', '标题不能为空', self::MUST_VALIDATE, 'regex', self::MODEL_BOTH),
	    array('stansum', '/^\+?[1-9]\d*$/', '至少需要一个规格', self::VALUE_VALIDATE, 'regex', self::MODEL_BOTH),
	    array('good_remark', 'require', '特色描述必须写', self::MUST_VALIDATE, 'regex', self::MODEL_BOTH),
	    array('good_brief', 'require', '介绍必须写', self::MUST_VALIDATE, 'regex', self::MODEL_BOTH),
	    array('cover_id', 'require', '封面还没有上传', self::MUST_VALIDATE, 'regex', self::MODEL_BOTH),
	    array('good_desc', 'require', '详细介绍还没有写', self::MUST_VALIDATE, 'regex', self::MODEL_BOTH),
	);
	


	
}